/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:31 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.calendrier.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;

import java.util.Date;

import javax.persistence.*;

@Entity
@Table(name="calendrier", catalog="dbscoremanager" )
public class Calendrier implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="idCalendrier", nullable=false)
    private int        idcalendrier ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="dateAttribution")
    private Date       dateattribution ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Calendrier()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdcalendrier( int value )
    {
        this.idcalendrier = value;
    }
    public int getIdcalendrier()
    {
        return this.idcalendrier;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : dateAttribution ( DATETIME ) 
    public void setDateattribution( Date value )
    {
        this.dateattribution = value;
    }
    public Date getDateattribution()
    {
        return this.dateattribution;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
